<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>投标保证金管理</title>
	<meta name="decorator" content="default"/>
	<link rel="stylesheet" href="${ctxStatic}/common/bootstrap.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/AdminLTE.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/jeesite.css">
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.extend.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/localization/messages_zh_CN.js"></script>
	<style type="text/css">
		#inputForm a{
			height: 30px;
			border-color: #ccc;
		}
		
		#contentTable tr{
			font-size: 13px;
		}
		#contentTable th{
			border-left: 1px solid #ddd;
			border-top: 1px solid #ddd;
		}
		#contentTable td{
			border-left: 1px solid #ddd;
			border-top: 1px solid #ddd;
		}
		
	</style>
	
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/zx/bidBond/">项目列表</a></li>
		<li class="active"><a href="${ctx}/zx/bidBond/show?lzdId=${bidBond.lzd.id}&sectionId=${bidBond.sectionId}">投标保证金管理</a></li>
	</ul>
	<div class="main-content">
	  <div class="box box-main">
	  	<form:form id="inputForm" modelAttribute="bidBond" action="${ctx}/zx/bidBond/updata" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<form:hidden path="lzdId"/>
			<form:hidden path="sectionId"/>
			<sys:message content="${message}"/>	
			<div class="box-body">
				<div class="form-unit">项目基本信息
					<span style="float: right">
						<a href="${ctx}/zx/all/lzd/getLzdAllInfo?lzdId=${bidBond.lzdId}&sectionId=${bidBond.sectionId}&pageFlag=bidBond"> 查看更多项目详情>></a>
					</span>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目编码：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.lzd.proNo}
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目名称：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.lzd.proName}
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 采购单位：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.lzd.buyUnit}
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 项目负责人：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.lzd.proPic}
							</div>
						</div>
					</div>
				</div>
				<div class="form-unit">保证金缴纳</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>是否缴纳：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:select path="payResult">
									<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
								</form:select>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 缴纳金额：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.paySum}
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>缴纳时间：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<fmt:formatDate value="${bidBond.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 缴纳形式：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.payMode}
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 缴纳票据上传：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="payFile" path="payFile" htmlEscape="false" maxlength="4000" class="input-xlarge"/>
								<sys:ckfinder input="payFile" type="files" uploadPath="/zx/payFile" selectMultiple="true" readonly="true"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 缴纳备注：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-10">
								${bidBond.payRemarks}
							</div>
						</div>
					</div>
				</div>
				<div class="form-unit">保证金退还</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>是否退还：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:select path="returnableResult">
									<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
								</form:select>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还金额：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.returnableSum}
							</div>
						</div>
					</div>
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还利息金额：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								${bidBond.returnableInterest}
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还时间：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<fmt:formatDate value="${bidBond.returnableTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
							</div>
						</div>
					</div>
					
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还票据上传：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="returnableFile" path="returnableFile" htmlEscape="false" maxlength="4000" class="input-xlarge"/>
								<sys:ckfinder input="returnableFile" type="files" uploadPath="/zx/returnFile" selectMultiple="true" readonly="true"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 退还备注：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-10">
								${bidBond.returnableRemarks}
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-actions" style="background-color: #fff">
				<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
				<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)" style="background-color: #e7e7e7;"/>
			</div>
		</form:form>
	  </div>
	</div>
</body>
</html>